<?php
header('content-type:text/html;charset=utf-8');
setcookie('name','',time()-2);
// echo $_COOKIE['name'];die;
sleep(2);
if($_COOKIE['name']){
    echo "<script>alert('退出失败');window.location.href='index.php'</script>";
}else{
    echo "<script>alert('退出成功');window.location.href='index.php'</script>";
}








?>